<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>小时工服务 - 邦伴用户端</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
  <style>
    :root {
      --primary: #ff7e2d;
      --primary-light: #fff3ea;
      --border: #f0f0f0;
      --text-main: #222;
      --text-sub: #888;
    }
    
    body {
      font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
      background-color: #f8f8f8;
      color: var(--text-main);
    }
    
    .app-container {
      width: 375px;
      height: 812px;
      margin: 0 auto;
      background: #fff;
      position: relative;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
      overflow-y: auto;
    }
    
    .primary-color {
      color: var(--primary);
    }
    
    .primary-bg {
      background-color: var(--primary);
    }
    
    .primary-light-bg {
      background-color: var(--primary-light);
    }
    
    .btn-primary {
      background-color: var(--primary);
      color: white;
    }
    
    .btn-outline {
      border: 1px solid var(--primary);
      color: var(--primary);
    }
    
    .card {
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .tab-active {
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
    }
    
    .bottom-nav {
      border-top: 1px solid var(--border);
    }
    
    .time-slot {
      border: 1px solid #e5e7eb;
      transition: all 0.2s;
    }
    
    .time-slot.selected {
      background-color: var(--primary-light);
      border-color: var(--primary);
      color: var(--primary);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 顶部导航栏 -->
    <div class="sticky top-0 z-10 bg-white border-b border-gray-100 px-4 py-3 flex items-center">
      <a href="index.html" class="mr-2">
        <i class="fas fa-arrow-left text-lg"></i>
      </a>
      <h1 class="text-lg font-medium flex-1 text-center">小时工服务</h1>
      <button class="ml-2">
        <i class="fas fa-ellipsis-v text-lg"></i>
      </button>
    </div>
    
    <!-- 服务介绍 Banner -->
    <div class="relative">
      <img src="https://source.unsplash.com/random/800x400/?cleaning,service" alt="小时工服务" class="w-full h-48 object-cover">
      <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end">
        <div class="p-4 text-white">
          <h2 class="text-xl font-bold">灵活高效的小时工服务</h2>
          <p class="text-sm mt-1 opacity-90">按小时计费 随叫随到</p>
        </div>
      </div>
    </div>
    
    <!-- 服务分类标签 -->
    <div class="px-4 py-3 overflow-x-auto whitespace-nowrap flex border-b border-gray-100">
      <div class="tab-active px-3 py-2 mr-4">全部服务</div>
      <div class="text-gray-500 px-3 py-2 mr-4">家居清洁</div>
      <div class="text-gray-500 px-3 py-2 mr-4">临时看护</div>
      <div class="text-gray-500 px-3 py-2 mr-4">上门烹饪</div>
      <div class="text-gray-500 px-3 py-2 mr-4">临时陪护</div>
    </div>
    
    <!-- 服务分类 -->
    <div class="p-4 border-b border-gray-100">
      <div class="grid grid-cols-4 gap-3">
        <div class="flex flex-col items-center">
          <div class="w-14 h-14 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-broom text-xl primary-color"></i>
          </div>
          <span class="text-xs text-center">家居清洁</span>
        </div>
        <div class="flex flex-col items-center">
          <div class="w-14 h-14 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-child text-xl primary-color"></i>
          </div>
          <span class="text-xs text-center">临时看护</span>
        </div>
        <div class="flex flex-col items-center">
          <div class="w-14 h-14 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-utensils text-xl primary-color"></i>
          </div>
          <span class="text-xs text-center">上门烹饪</span>
        </div>
        <div class="flex flex-col items-center">
          <div class="w-14 h-14 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-user-nurse text-xl primary-color"></i>
          </div>
          <span class="text-xs text-center">临时陪护</span>
        </div>
      </div>
    </div>
    
    <!-- 服务预约 -->
    <div class="p-4">
      <h3 class="font-medium mb-4">选择服务时间</h3>
      
      <!-- 日期选择 -->
      <div class="mb-4">
        <p class="text-sm text-gray-500 mb-2">日期</p>
        <div class="flex overflow-x-auto space-x-2 pb-2">
          <div class="time-slot selected rounded-lg p-3 flex flex-col items-center flex-shrink-0">
            <p class="text-sm">今天</p>
            <p class="text-xs text-gray-500">9月15日</p>
          </div>
          <div class="time-slot rounded-lg p-3 flex flex-col items-center flex-shrink-0">
            <p class="text-sm">明天</p>
            <p class="text-xs text-gray-500">9月16日</p>
          </div>
          <div class="time-slot rounded-lg p-3 flex flex-col items-center flex-shrink-0">
            <p class="text-sm">周三</p>
            <p class="text-xs text-gray-500">9月17日</p>
          </div>
          <div class="time-slot rounded-lg p-3 flex flex-col items-center flex-shrink-0">
            <p class="text-sm">周四</p>
            <p class="text-xs text-gray-500">9月18日</p>
          </div>
          <div class="time-slot rounded-lg p-3 flex flex-col items-center flex-shrink-0">
            <p class="text-sm">周五</p>
            <p class="text-xs text-gray-500">9月19日</p>
          </div>
        </div>
      </div>
      
      <!-- 时段选择 -->
      <div class="mb-4">
        <p class="text-sm text-gray-500 mb-2">时段</p>
        <div class="grid grid-cols-3 gap-2">
          <div class="time-slot rounded-lg p-3 flex flex-col items-center">
            <p class="text-sm">上午</p>
            <p class="text-xs text-gray-500">8:00-12:00</p>
          </div>
          <div class="time-slot selected rounded-lg p-3 flex flex-col items-center">
            <p class="text-sm">下午</p>
            <p class="text-xs text-gray-500">13:00-17:00</p>
          </div>
          <div class="time-slot rounded-lg p-3 flex flex-col items-center">
            <p class="text-sm">晚上</p>
            <p class="text-xs text-gray-500">18:00-22:00</p>
          </div>
        </div>
      </div>
      
      <!-- 服务时长 -->
      <div class="mb-4">
        <p class="text-sm text-gray-500 mb-2">服务时长</p>
        <div class="flex items-center justify-between bg-gray-50 p-3 rounded-lg">
          <div class="flex items-center">
            <button class="w-8 h-8 rounded-full border border-gray-300 flex items-center justify-center">
              <i class="fas fa-minus text-gray-400"></i>
            </button>
            <span class="mx-4 text-lg font-medium">2小时</span>
            <button class="w-8 h-8 rounded-full border border-gray-300 flex items-center justify-center">
              <i class="fas fa-plus text-gray-400"></i>
            </button>
          </div>
          <div>
            <span class="text-sm primary-color font-bold">¥158</span>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 热门服务 -->
    <div class="p-4 bg-gray-50">
      <div class="flex justify-between items-center mb-4">
        <h3 class="font-medium">热门服务</h3>
        <a href="#" class="text-sm text-gray-500">更多 <i class="fas fa-chevron-right text-xs"></i></a>
      </div>
      
      <!-- 服务1 -->
      <div class="card bg-white p-4 mb-4">
        <div class="flex justify-between items-start">
          <div>
            <h4 class="font-bold">深度家居清洁</h4>
            <p class="text-xs text-gray-500 mt-1">专业清洁 一尘不染</p>
            <div class="flex items-center mt-2">
              <span class="text-xs bg-orange-100 text-orange-500 px-2 py-1 rounded-full mr-2">厨房清洁</span>
              <span class="text-xs bg-orange-100 text-orange-500 px-2 py-1 rounded-full">卫生间消毒</span>
            </div>
            <div class="mt-3">
              <span class="text-sm primary-color font-bold">¥79</span>
              <span class="text-xs text-gray-500 ml-1">/ 小时</span>
            </div>
          </div>
          <img src="https://source.unsplash.com/random/100x100/?cleaning" alt="深度清洁" class="w-20 h-20 rounded-lg object-cover">
        </div>
        <div class="mt-3 flex justify-between">
          <div class="flex items-center">
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <span class="text-xs text-gray-500 ml-1">4.9 (256评价)</span>
          </div>
          <button class="btn-primary text-xs px-4 py-1 rounded-full">预约</button>
        </div>
      </div>
      
      <!-- 服务2 -->
      <div class="card bg-white p-4">
        <div class="flex justify-between items-start">
          <div>
            <h4 class="font-bold">临时儿童看护</h4>
            <p class="text-xs text-gray-500 mt-1">专业保姆 安心托管</p>
            <div class="flex items-center mt-2">
              <span class="text-xs bg-orange-100 text-orange-500 px-2 py-1 rounded-full mr-2">陪伴玩耍</span>
              <span class="text-xs bg-orange-100 text-orange-500 px-2 py-1 rounded-full">辅导作业</span>
            </div>
            <div class="mt-3">
              <span class="text-sm primary-color font-bold">¥88</span>
              <span class="text-xs text-gray-500 ml-1">/ 小时</span>
            </div>
          </div>
          <img src="https://source.unsplash.com/random/100x100/?babysitting" alt="儿童看护" class="w-20 h-20 rounded-lg object-cover">
        </div>
        <div class="mt-3 flex justify-between">
          <div class="flex items-center">
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star text-yellow-400 text-xs"></i>
            <i class="fas fa-star-half-alt text-yellow-400 text-xs"></i>
            <span class="text-xs text-gray-500 ml-1">4.7 (189评价)</span>
          </div>
          <button class="btn-primary text-xs px-4 py-1 rounded-full">预约</button>
        </div>
      </div>
    </div>
    
    <!-- 底部空间 -->
    <div class="pb-20"></div>
    
    <!-- 底部导航栏 -->
    <div class="fixed bottom-0 z-10 bg-white bottom-nav" style="width: 375px; margin: 0 auto;">
      <div class="grid grid-cols-5 py-1">
        <a href="index.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-home text-lg"></i>
          <span class="text-xs mt-1">首页</span>
        </a>
        <a href="orders.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-clipboard-list text-lg"></i>
          <span class="text-xs mt-1">订单</span>
        </a>
        <a href="messages.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-comment-dots text-lg"></i>
          <span class="text-xs mt-1">消息</span>
        </a>
        <a href="membership.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-crown text-lg"></i>
          <span class="text-xs mt-1">会员</span>
        </a>
        <a href="profile.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-user text-lg"></i>
          <span class="text-xs mt-1">我的</span>
        </a>
      </div>
    </div>
  </div>

  <script>
    // 简单的导航激活状态切换
    document.addEventListener('DOMContentLoaded', function() {
      const navItems = document.querySelectorAll('.bottom-nav a');
      navItems.forEach(item => {
        item.addEventListener('click', function() {
          navItems.forEach(i => i.classList.remove('tab-active'));
          navItems.forEach(i => i.classList.add('text-gray-500'));
          this.classList.add('tab-active');
          this.classList.remove('text-gray-500');
        });
      });
      
      // 服务分类标签切换
      const tabItems = document.querySelectorAll('.px-4.py-3.overflow-x-auto div');
      tabItems.forEach(item => {
        item.addEventListener('click', function() {
          tabItems.forEach(i => i.classList.remove('tab-active'));
          tabItems.forEach(i => i.classList.add('text-gray-500'));
          this.classList.add('tab-active');
          this.classList.remove('text-gray-500');
        });
      });
      
      // 时间选择
      const timeSlots = document.querySelectorAll('.time-slot');
      timeSlots.forEach(slot => {
        slot.addEventListener('click', function() {
          const parent = this.parentNode;
          parent.querySelectorAll('.time-slot').forEach(s => {
            if (parent === s.parentNode) {
              s.classList.remove('selected');
            }
          });
          this.classList.add('selected');
        });
      });
    });
  </script>
</body>
</html> 